package com.learning;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;

//1、@SpringBootApplication 会自动扫描可以被注入的类，并初始化
// 2、仅扫描相同package下或package子包下，注解为@Controller、@Service、@Repository、@Compent、@Entity的类
@SpringBootApplication
//引入自定义配置
@PropertySource("classpath:config.properties")
public class Chapter1Application {

	public static void main(String[] args) {
		SpringApplication.run(Chapter1Application.class, args);
	}
}
